<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html:html>
<head>
	<%
		request.setCharacterEncoding("UTF-8");
	%>
	<base href="<%=basePath%>">
	<link rel="stylesheet" href="css/css.css" type="text/css"></link>
	<link rel="stylesheet" href="css/jquery.datepick.css" type="text/css"></link>
	<style type="text/css">
#leftSide {
	float: left;
	height: auto;
	width: 50%;
}

#rightSide {
	float: left;
	height: auto;
	width: 50%;
}
</style>
	<script type="text/javascript" src="js/global.js"></script>
	<script type="text/javascript" src="js/calendar.js"></script>
	<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
	<script type="text/javaScript" src="js/jquery/jquery.datepick.js"></script>
	<script type="text/javaScript" src="js/jquery/jquery.datepick.lang.js"></script>
	<script type="text/javaScript" src="js/jquery/jquery.datepick-zh-CN.js"></script>
	<script type="text/javascript" src="js/redetailer/redetailer.js"></script>
</head>
<body>
	<table width="100%" height="29" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td background="images/top-5.gif"
				style="font-size: 14px; font-weight: bold;" align="center">
				零售店管理
			</td>
		</tr>
	</table>
	<table class="tab_back">
		<tr>
			<td>
				<table border=0 cellpadding=0 cellspacing=0 height=25>
					<tr align="center">
						<td width=5>
							&nbsp;
						</td>
						<td class="tab_left">
							&nbsp;
						</td>

						<td class="tab_on" valign="bottom" nowrap="nowrap">
							零售店信息
						</td>
						<td class="tab_right" valign="bottom">
							&nbsp;
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<form id="submitForm" name="submitForm"
		action="redetailer/createRedetailerAction.do?method=createRedetailer"
		method="post" onsubmit="return checkForm();">
		<table width="100%" height="29" cellpadding="0" cellspacing="0"
			border="1" bordercolor="#D4D0C8">
			<tr>
				<td>
					信息建立日期:
				</td>
				<td>
					${today}
				</td>
				<td>
					销售区域:
				</td>
				<td>
					<select id="saleAdderess" name="saleAdderess">
						<option>
							请选择
						</option>
						<c:forEach items="${salesRegionTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>

					</select>
				</td>
			</tr>
			<tr>
				<td>
					固特异负责人:
				</td>
				<td>
					${userName}
				</td>
				<td>
					零售店类别:
				</td>
				<td>
					${retailerType}
				</td>
			</tr>
			<tr>
				<td>
					拜访路径:
				</td>
				<td>
					<input id="retailerLoop" name="retailerLoop" value="" />
				</td>

			</tr>
			<tr bgcolor="#D4D0C8">
				<td colspan="4" align="center" height="25">
					零售店信息
				</td>
			</tr>
			<tr>
				<td>
					店编号
				</td>
				<td>
					${retailerId}
				</td>
				<td>
					店名
				</td>

				<td>
					<input id="retailName" name="retailName" value="" />
				</td>
			</tr>
			<tr>
				<td>
					地址
				</td>
				<td>
					<input id="adderess" name="adderess" value="" />
				</td>

				<td>
					city
				</td>
				<td>
					<input id="city" name="city" value="" />
				</td>
			</tr>
			<tr>
				<td>
					Province
				</td>
				<td>
					<select id="province" name="province">
						<option>
							请选择
						</option>
						<c:forEach items="${regionTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td>
					postcode
				</td>
				<td>
					<input id="postcode" name="postcode" value=""   maxlength="6"/>
				</td>
			</tr>
			<tr>
				<td>
					tel
				</td>
				<td>
					<input id="tel" name="tel" value="" />
				</td>
				<td>
					fax
				</td>
				<td>
					<input id="fax" name="fax" value="" />
				</td>
			</tr>
			<tr>
				<td>
					email
				</td>
				<td>
					<input id="email" name="email" value="" />
				</td>
				<td>
					企业类型
				</td>
				<td>
					<select id="comType" class="select">
						<option>
							请选择
						</option>
						<option value="0">
							Private/私人
						</option>
						<option value="1">
							Chain/连锁
						</option>
						<option value="2">
							Collective/集体
						</option>
						<option value="3">
							Other/其它
						</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					Staff/员工数
				</td>
				<td>
					<input id="comNum" name="comNum" value="" />
				</td>

				<td>
					Sales staff/销售员数
				</td>
				<td>
					<input id="salNum" name="salNum" value="" />
				</td>
			</tr>
			<tr>
				<td>
					Mechanics技术工数
				</td>
				<td>
					<input id="techNum" name="techNum" value="" />
				</td>

				<td>
					从事轿车轮胎零售历史
				</td>
				<td>
					<input id="saleHistory" name="saleHistory" value="" />
				</td>
			</tr>
			<tr>
				<td>
					MConsumer Tire SOB轿车轮胎占总业务量
				</td>
				<td>
					<input id="typeSum" name="typeSum" value="" />
				</td>
				<td>
					经销商
				</td>
				<td>
					${distributor}
				</td>
			</tr>
		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					联系人信息(最多四个)
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="addContract" />
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteContract" />
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table width="100%" border="1" bgcolor="#F5F5F5" id="contractTable">
			<thead>
				<tr class="toptr">
					<td>
						选择
					<td>
						联系人
					</td>
					<td>
						职位
					</td>
					<td>
						手机
					</td>
				</tr>
			</thead>
			<tbody>

			</tbody>
		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="4" align="center" height="25">
					Signboard Information/店招信息
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					品牌
				</td>
				<td align="center" height="25">
					<select id="brandId" name="brandId" class="select">
						<option >
							选择
						</option>
						<c:forEach items="${typeBrandTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25">
					尺寸
				</td>
				<td align="center" height="25">
					<input id="size" name="size">
				</td>
				<td align="center" height="25">
					安装日期
				</td>
				<td align="center" height="25">
					<input id="installdate" name="installdate" class="myDate">
				</td>
			</tr>
		</table>

		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="6" align="center" height="25">
					服务项目
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					轮胎
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="tire" name="tire">
				</td>
				<td align="center" height="25">
					保养
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="repair" name="repair">
				</td>
				<td align="center" height="25">
					美容
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="cosmetic" name="cosmetic">
				</td>
				<td align="center" height="25">
					汽修
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="automoRepair" name="automoRepair">
				</td>
				<td align="center" height="25">
					轮胎项目利润比
				</td>
				<td align="center" height="25">
					<input type="text" name="profit" id="profit">
					%
				</td>
			</tr>
		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="6" align="center" height="25">
					店内设施设备
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					店面积
				</td>
				<td align="center" height="25">
					<input type="text" id="area" name="area">
				</td>
				<td align="center" height="25">
					工位
				</td>
				<td align="center" height="25">
					<input type="text" id="station" name="station">
				</td>
				<td align="center" height="25">
					洗手间
				</td>
				<td align="center" height="25">
					<input type="text" id="washRoom" name="washRoom">
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					客户休息室
				</td>
				<td align="center" height="25">
					<input type="text" id="restRoom" name="restRoom">
				</td>
				<td align="center" height="25">
					四轮定位仪
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="positionFinder" name="positionFinder">
				</td>
				<td align="center" height="25">
					轮胎修补
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="tireRepair" name="tireRepair">
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					装拆胎机
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="tireMachine" name="tireMachine">
				</td>
				<td align="center" height="25">
					Balancing动平衡机
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="balenceMachine" name="balenceMachine">
				</td>
				<td align="center" height="25">
					Service Van服务车辆
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="serviceCar" name="serviceCar">
				</td>
			</tr>

			<tr>
				<td align="center" height="25">
					Service Contract服务合同
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="serviceContract" name="serviceContract">
				</td>
				<td align="center" height="25">
					Car Wash洗车
				</td>
				<td align="center" height="25">
					<input type="checkbox" id="carWash" name="carWash">
				</td>
				<td align="center" height="25">

				</td>
				<td align="center" height="25">

				</td>
			</tr>

		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="6" align="center" height="25">
					Goodyear Investment/固特异投资
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					Validity of Contract/ 合同期限
				</td>
				<td align="center" height="25">
					<input type="text" id="contractPeriod" name="contractPeriod" class="myDate">
				</td>
				<td align="center" height="25">
					Amount of Investment/投资金额
				</td>
				<td align="center" height="25">
					<input type="text" id="contractAmount" name="contractAmount">
				</td>
				<td align="center" height="25">
					Mode of Investment/投资方式
				</td>
				<td align="center" height="25">
					<select id="investType" class="select">
						<option id="0">
							基本赞助
						</option>
						<option id="1">
							店招
						</option>
						<option id="2">
							装修
						</option>
						<option id="3">
							工服
						</option>
					</select>
				</td>
			</tr>
			<tr>
				<td align="center" height="25">
					Record of Competitor Investment/ 竞争品牌投资状况记录：
				</td>
				<td align="center" height="25" colspan="5">
					<input type="text" id="investRecord" name="investRecord" />
				</td>

			</tr>
		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					现零售轿车轮胎品牌
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newTireBrand">
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteTireBrand">
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8"
			id="tireBrandTable">
			<thead>
				<tr class="toptr">
					<td align="center" height="25">
						选择
					</td>
					<td align="center" height="25">
						轮胎品牌
					</td>
					<td align="center" height="25">
						进货渠道
					</td>
					<td align="center" height="25">
						付款条件
					</td>
					<td align="center" height="25">
						重要商务政策
					</td>
				</tr>
			</thead>
			<tbody>
			</tbody>

		</table>
		<table width="100%" border="0">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					轿车轮胎零售记录
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newTireRecord">
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteTireRecord">
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table id="tireRecordTable" width="100%" border="1"
			bordercolor="#D4D0C8">
			<thead>
				<tr class="toptr">
					<td align="center" height="25">
						选择
					</td>
					<td align="center" height="25">
						品牌
					</td>
					<td align="center" height="25">
						类型
					</td>
					<td align="center" height="25">
						Below 14"
					</td>
					<td align="center" height="25">
						15"&amp;16"
					</td>
					<td align="center" height="25">
						17"
					</td>
					<td align="center" height="25">
						Above 18"
					</td>
					<td align="center" height="25">
						Total：
					</td>
					<td align="center" height="25">
						year：
					</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td align="center" height="25">
					</td>
					<td align="center" height="25">
						<select style="display: none;" id="tireRecord_brand"
							name="tireRecordList[pTireRecord].brand" class="select">
							<option value="0" selected="selected">
							</option>
						</select>
						固特异
					</td>
					<td align="center" height="25">
						<select style="display: none;" id="tireRecord_aimActual"
							name="tireRecordList[pTireRecord].aimActual" class="select">
							<option value="actual" selected="selected">
							</option>
						</select>
						实际
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size14"
							name="tireRecordList[pTireRecord].size14" class="size14">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size16"
							name="tireRecordList[pTireRecord].size16" class="size16">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size17"
							name="tireRecordList[pTireRecord].size17" class="size17">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size18"
							name="tireRecordList[pTireRecord].size18" class="size18">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_sizeTotal"
							name="tireRecordList[pTireRecord].sizeTotal" class="sizeTotal">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_year"
							name="tireRecordList[pTireRecord].year" class="sizeTotal"
							style="display: none" value="${lastYear}">
						${lastYear}
					</td>
				</tr>
				<tr>
					<td align="center" height="25">

					</td>
					<td align="center" height="25">
						<select style="display: none;" id="tireRecord_brand"
							name="tireRecordList[pTireRecord].brand" class="select">
							<option value="0" selected="selected">
							</option>
						</select>
						固特异
					</td>
					<td align="center" height="25">
						<select style="display: none;" id="tireRecord_type"
							name="tireRecordList[pTireRecord].aimActual" class="select">
							<option value="aim" selected="selected">
							</option>
						</select>
						目标
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size14"
							name="tireRecordList[pTireRecord].size14" class="size14">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size16"
							name="tireRecordList[pTireRecord].size16" class="size16">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size17"
							name="tireRecordList[pTireRecord].size17" class="size17">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_size18"
							name="tireRecordList[pTireRecord].size18" class="size18">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_sizeTotal"
							name="tireRecordList[pTireRecord].sizeTotal" class="sizeTotal">
					</td>
					<td align="center" height="25">
						<input type="text" id="tireRecord_year"
							name="tireRecordList[pTireRecord].year" class="sizeTotal"
							style="display: none" value="${lastYear}">
						${lastYear}
					</td>
				</tr>

			</tbody>
		</table>
		<table width="100%" border="1" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="13" align="center" height="25">
					${currentYear}年进货月度记录
				</td>
			</tr>
			<tr class="toptr">
				<td>
					年目标销量
				</td>
				<td>
					1月
				</td>
				<td>
					2月
				</td>
				<td>
					3月
				</td>
				<td>
					4月
				</td>
				<td>
					5月
				</td>
				<td>
					6月
				</td>
				<td>
					7月
				</td>
				<td>
					8月
				</td>
				<td>
					9月
				</td>
				<td>
					10月
				</td>
				<td>
					11月
				</td>
				<td>
					12月
				</td>
			</tr>
			<tr>
				<td>
					固特异
				</td>
				<td>
					<input size="5" id="jan" name="jan" />
				</td>
				<td>
					<input id="Jan" size="5" id="feb" name="feb" />
				</td>
				<td>
					<input size="5" id="mar" name="mar" />
				</td>
				<td>
					<input size="5" id="apr" name="apr" />
				</td>
				<td>
					<input size="5" id="may" name="may" />
				</td>
				<td>
					<input size="5" id="jun" name="jun" />
				</td>
				<td>
					<input size="5" id="jul" name="jul" />
				</td>
				<td>
					<input size="5" id="aug" name="aug" />
				</td>
				<td>
					<input size="5" id="sep" name="sep" />
				</td>
				<td>
					<input size="5" id="oct" name="oct" />
				</td>
				<td>
					<input size="5" id="nov" name="nov" />
				</td>
				<td>
					<input size="5" id="dec" name="dec" />
				</td>
			</tr>
		</table>
		<table width="100%" cellspacing="1" border="0" bordercolor="#D4D0C8">
			<tr bgcolor="#D4D0C8">
				<td colspan="3" align="center" height="25">
					完成的固特异培训
				</td>
			</tr>
			<tr bgcolor="#FFFFCC" bordercolor="#FFFFCC">
				<td width="5">
					<input type="button" value="新增" id="newTrain">
				</td>
				<td width="5">
					<input type="button" value="删除" id="deleteTrain">
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
		<table id="trainTable" width="100%" cellspacing="1" border="1"
			bordercolor="#D4D0C8">
			<thead>
				<tr class="toptr">
					<td>
						选择
					</td>
					<td>
						培训内容
					</td>
					<td>
						日期
					</td>
					<td>
						地点
					</td>
					<td>
						培训导师
					</td>
					<td>
						被培训者
					</td>
					<td>
						在职
					</td>
					<td>
						固特异培训导师评语
					</td>
				</tr>
			</thead>
			<tbody>

			</tbody>
		</table>
		<table width="100%" height="29" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td>
					<input type="button" id="formSubmit" value="提交">
				</td>
			</tr>
		</table>
	</form>
	<table id="trainTemple" style="display: none">
		<tbody>
			<tr>
				<td>
					<input type="checkbox" class="checkbox">
				</td>
				<td>
					<input size="5" type="text" id="trainContent"
						name="trainList[pTrain].trainContent" class="trainContent" />
				</td>
				<td>
					<input size="5" type="text" id="trainDate" class="myDate trainDate"
						name="trainList[pTrain].trainDate" />
				</td>
				<td>
					<input size="5" type="text" id="trainAddress"
						name="trainList[pTrain].trainAddress" class="trainAddress" />
				</td>
				<td>
					<input size="5" type="text" id="trainTeacher"
						name="trainList[pTrain].trainTeacher" class="trainTeacher" />
				</td>
				<td>
					<input size="5" type="text" id="trainPerson"
						name="trainList[pTrain].trainPerson" class="trainPerson" />
				</td>
				<td>
					<input size="5" type="checkbox" id="trainOnJob"
						name="trainList[pTrain].trainOnJob" class="trainOnJob" />
				</td>
				<td>
					<input size="5" type="text" id="trainComment"
						name="trainList[pTrain].trainComment" class="trainComment" />
				</td>
			</tr>
		</tbody>
	</table>
	<table id="tireRecordTemple" style="display: none">
		<tbody>
			<tr>
				<td align="center" height="25">
					<input type="checkbox" class="checkBox">
				</td>
				<td align="center" height="25">
					<select id="tireRecord_brand"
						name="tireRecordList[pTireRecord].brand" class="select">
						<option value="2">
							开利实际
						</option>
						<option value="3">
							开利目标
						</option>
						<option value="4">
							米其林
						</option>
						<option value="5">
							普利司通
						</option>
					</select>
				</td>
				<td align="center" height="25">
					<select id="tireRecord_aimActual" disabled="disabled"
						name="tireRecordList[pTireRecord].aimActual" class="select">
						<option value="actual" selected="selected">
							实际
						</option>
					</select>
				</td>
				<td align="center" height="25">
					<input type="text" id="tireRecord_size14"
						name="tireRecordList[pTireRecord].size14" class="size14" />
				</td>
				<td align="center" height="25">
					<input type="text" id="tireRecord_size16"
						name="tireRecordList[pTireRecord].size16" class="size16" />
				</td>
				<td align="center" height="25">
					<input type="text" id="tireRecord_size17"
						name="tireRecordList[pTireRecord].size17" class="size17" />
				</td>
				<td align="center" height="25">
					<input type="text" id="tireRecord_size18"
						name="tireRecordList[pTireRecord].size18" class="size18" />
				</td>
				<td align="center" height="25">
					<input type="text" id="tireRecord_sizeTotal"
						name="tireRecordList[pTireRecord].sizeTotal" class="sizeTotal" />
				</td>
				<td align="center" height="25">
					<input type="text" id="tireRecord_year"
						name="tireRecordList[pTireRecord].year" class="sizeTotal"
						style="display: none" value="${lastYear}">
					${lastYear}
				</td>
			</tr>
		</tbody>
	</table>
	<table id="contractTemple" style="display: none;">
		<tbody>
			<tr>
				<td>
					<input type="checkbox" class="checkbox">
				</td>
				<td>
					<input id="contractName_pContract" class="contractName"
						name="contractList[pContract].contractName" class="contractName">
				</td>
				<td>
					<select id="contractPost_pContract"
						name="contractList[pContract].contractPost" class="contractPost">
						<option>
							请选择
						</option>
						<c:forEach items="${postTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td>
					<input id="contractMobile_pContract"
						name="contractList[pContract].contractMobile"
						class="contractMobile">
				</td>
			</tr>
		</tbody>
	</table>
	<table id="tireBrandTemple" style="display: none;">
		<tbody>
			<tr>
				<td align="center" height="25">
					<input type="checkbox" class="checkBox"  >
				</td>
				<td align="center" height="25">
					<select name="tireBrandList[pTireBrand].tireBrand"
						class="select tireBrand">
						<c:forEach items="${typeBrandTableList}" var="patternBean">
							<option value="${patternBean.key}">
								${patternBean.description}
							</option>
						</c:forEach>
					</select>
				</td>
				<td align="center" height="25">
					<input name="tireBrandList[pTireBrand].channel" class="channel" />
				</td>
				<td align="center" height="25">
					<input name="tireBrandList[pTireBrand].pay" class="pay" />
				</td>
				<td align="center" height="25">
					<input name="tireBrandList[pTireBrand].policy" class="policy" />
				</td>
			</tr>
		</tbody>
	</table>
</body>
</html:html>
